package com.gaofeng.day19;

import java.util.HashMap;
import java.util.Map;

public class demo01 {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("gj","黄蓉");
        map.put("wxb","zzzz");
        map.put("yinzhip","cccc");
//        String name = map.put("wxb","公主");
//        System.out.println(name);
//
//        System.out.println(map);
//
//        map.remove("wxb");
//        System.out.println(map);
//        map.clear();
//        System.out.println(map);
        boolean wxb = map.containsKey("wxb2");
        System.out.println(wxb);
        boolean empty = map.isEmpty();
        System.out.println(empty);
        int size = map.size();
        System.out.println(size);
    }
}
